<extend name="Public/base" />
	<block name="wrapper">
		<form action="{:U('Group/insert')}" method="post">
			<table class="table">
				<tr>
					<th>组名</th>
					<th>权限</th>
				</tr>
			
					<tr>
						<td rowspan="10">{$rule['title']}<input type="hidden" name="id" value="{$rule['id']}"></td>
							<foreach name="data" item="vo">
								<td>
									<input name="rules[]" {$aa++} {:in_array($vo['id'],explode(',',$rule['rules']))?'checked' :''} type="checkbox" value="{$vo['id']}">{$vo['title']}
								</td>
								
								<if condition="$aa%5 eq 0">
								</tr>
								<tr>
								</if>
							</foreach>
					</tr>
					<tr>
						<td colspan="10" align="center"><input type="submit" value="确定"></td>
					</tr>
				
			</table>
		</form>
	</block>